package com.gengyun.gengyunacquistion.controller;

import com.gengyun.gengyunacquistion.common.Result;
import com.gengyun.gengyunacquistion.mapper.AcquisitionCollectHistoryMapper;
import com.gengyun.gengyunacquistion.mapper.UavMultispectralImageMapper;
import com.gengyun.gengyunacquistion.pojo.UavMultispectralImage;
import com.gengyun.gengyunacquistion.scheduled.DataAcquisition;
import org.quartz.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/taskview/view/currentyear/UAVphotography")
public class UAV {
    @Qualifier("schedulerFactoryBean")
    @Autowired
    private Scheduler scheduler;
    @Resource
    UavMultispectralImageMapper uavMultispectralImageMapper;
    public List<UavMultispectralImage> getUavMultispectralImage(){
        return uavMultispectralImageMapper.findAll();
    }

}
